using System;
using SQLServices.Log;

namespace SqlRunner.Events
{
	/// <summary>
	/// Used to enable the UI thread to update the treelist when a new script has
	/// been processed
	/// </summary>
	public delegate void AddLogEventHandler(IItemLog itemLog);

	/// <summary>
	/// Used to inidcate the UI that a script was successfully executed so counters are
	/// updated accordily
	/// </summary>
	public delegate void SuccessScriptHandler();

	/// <summary>
	/// Used to indicate that an error took place when a script was executed so counters
	/// can be updated
	/// </summary>
	public delegate void ErrorScriptHandler();

	/// <summary>
	/// Used to indicate that a new message was created by the runner and should be
	/// displayed in the UI
	/// </summary>
	public delegate void AddMessageHandler(string format, params object[] args);

}
